<div>
	<hr>
	<ul class="breadcrumb">
		<li>
			<?php echo $this->Html->link('Trang chủ', array('controller' => 'backends', 'action' => 'admin_index'));?> <span class="divider">/</span>
		</li>
		<li>
			<?php echo $this->Html->link('Game', array('controller' => 'games', 'action' => 'admin_index'));?> <span class="divider">/</span>
		</li>
		
		<li>
			<?php echo $this->Html->link('Sửa thông tin game', array('controller' => 'games', 'action' => 'admin_edit', $this->request->data['Game']['id']));?>
		</li>
	</ul>
	<hr>
</div>

<div class="row-fluid sortable">	
	<div class="box span12">
		<?php echo $this->element('errors'); ?>
		<?php echo $this->Session->flash('bad'); ?>
		<?php echo $this->Session->flash('good'); ?>
		<div class="box-header">
			<h2><i class="icon-tasks"></i><span class="break"></span>Thêm game mới</h2>
		</div>
		
		<div class="box-content">
		<?php echo $this->Form->create('Game', array('type' => 'file', 'inputDefaults' => array('label' => false))); ?>
			<table class="nhap-form">
				<?php echo $this->Form->input('id'); ?>
				<tr>
					<td width="150">Nhà phát hành game: </td>
					<td><?php echo $this->Form->input('publisher_id'); ?></td>
				</tr>
				
				<tr>
					<td>Người đăng: </td>
					<td><?php echo $this->Form->input('user_id'); ?></td>
				</tr>
				
				<tr>
					<td>Danh mục game: </td>
					<td><?php echo $this->Form->input('Category'); ?></td>
				</tr>
				
				<tr>
					<td>Thể loại game: </td>
					<td><?php echo $this->Form->input('Genre'); ?></td>
				</tr>
				
				
				<tr>
					<td>Tên game: </td>
					<td><?php echo $this->Form->input('name'); ?></td>
				</tr>
				
				
				<tr>
					<td>Mô tả: </td>
					<td><?php echo $this->Form->input('description', array('type' => 'textarea')); ?></td>
				</tr>
				
				
				<tr>
					<td>Phiên bản game: </td>
					<td><?php echo $this->Form->input('verision'); ?></td>
				</tr>
				
				<tr>
					<td>Ảnh đại diện: </td>
					<td>
						<div id="uniform-fileInput" class="uploader">
							<?php echo $this->Form->input('thumbnail', array('type' => 'file', 'id' => 'fileInput', 'class' => 'input-file uniform_on')); ?>
							<span class="filename" style="-moz-user-select: none;">Không có file nào được chọn</span>
							<span class="action" style="-moz-user-select: none;">Chọn file</span>
						</div>
					
					
					</td>
				</tr>
				
				
				<tr>
					<td>Chọn hệ điều hành: </td>
					<td><?php echo $this->Form->input('System'); ?></td>
				</tr>
				
				
				<tr>
					<td>Upload game Android: </td>
					<td>
						<div id="uniform-fileInput" class="uploader">
							<?php echo $this->Form->input('android', array('type' => 'file', 'id' => 'fileInput', 'class' => 'input-file uniform_on')); ?>
							<span class="filename" style="-moz-user-select: none;">Không có file nào được chọn</span>
							<span class="action" style="-moz-user-select: none;">Chọn file</span>
						</div>
					
					
					</td>
				</tr>
				
				
				<tr>
					<td>Upload game iOS: </td>
					<td>
						<div id="uniform-fileInput" class="uploader">
							<?php echo $this->Form->input('ios', array('type' => 'file', 'id' => 'fileInput', 'class' => 'input-file uniform_on')); ?>
							<span class="filename" style="-moz-user-select: none;">Không có file nào được chọn</span>
							<span class="action" style="-moz-user-select: none;">Chọn file</span>
						</div>
					
					
					</td>
				</tr>
				
				
				
				<tr>
					<td>Upload game Windows phone: </td>
					<td>
						<div id="uniform-fileInput" class="uploader">
							<?php echo $this->Form->input('windowsphone', array('type' => 'file', 'id' => 'fileInput', 'class' => 'input-file uniform_on')); ?>
							<span class="filename" style="-moz-user-select: none;">Không có file nào được chọn</span>
							<span class="action" style="-moz-user-select: none;">Chọn file</span>
						</div>
					
					
					</td>
				</tr>
				
				<tr>
					<td>Tag: </td>
					<td><?php echo $this->Form->input('Tag', array('type' => 'text', 'placeholder' => 'Cách nhau bằng dấu phẩy', 'value' => $tags)); ?></td>
				</tr>
				
				
				<tr>
					<td colspan="2"><?php echo $this->Form->submit('Thêm game mới'); ?></td>
				</tr>
			</table>
		<?php echo $this->Form->end(); ?>
		</div>			
		</div>	
	</div><!--/span-->

</div><!--/row-->
